﻿using Marknic.TestRunner.Rigging;
using NetduinoHappyHour.Hardware;
using System;

namespace NetduinoHappyHour.Util
{
    /// <summary>
    ///This is a test class for Testing the SystemConfigUpdate
    ///</summary>
    public class UpdateSystemConfigTest
    {
        /// <summary>
        ///A test for updating value in sysemConfig
        ///</summary>
        public void TestPropertyUpdate()
        {
            int newDelay = 2 * SystemConfig.Instance().DelayStepper;
            new UpdateSystemConfig("DelayStepper",newDelay.ToString()).Execute();
            Assert.AreEqual(newDelay, SystemConfig.Instance().DelayStepper);
        }
    }
}
